package edu.fiu.cis.personalize.server.graph.update;

import edu.fiu.cis.personalize.server.graph.Group;
import edu.fiu.cis.personalize.server.graph.NodeType;
import edu.fiu.cis.personalize.server.graph.Query;

public class GroupQueryUpdate extends GraphUpdate<Group, Query> {

	@Override
	protected double computeWeight(Group node1, Query node2) {
		return SimilarityMeasure.computeSimilarity(node1.getGroupDescription(),
				node2.getQuery());
	}


	@Override
	NodeType type1() {
		return NodeType.GROUP;
	}

	@Override
	NodeType type2() {
		return NodeType.QUERY;
	}

}
